//
// Created by Administrator on 2021/8/8.
//

#include <view2.h>

struct TestA {
    int a;
    int b;
    int c;
    char d;
    int e[3];
    char f[10];
    char* h;
};

VSegment(seg_b, VCheck(b, 9));

void func() {
    VStruct(ViewANew, TestA,
            VView(d),
            VCheck(c, 1),
            VApply(seg_b),
            VData(e, VContainer(1, 2, 2)),
            VData(f, VContainer(1, 2, 2)),
            VString(f, "abc"),
            VString(h, "def"));

    TestA a{};
}